import { call } from '.'
/** 
 * @export
 * @param {number} duration 延迟时间
 */
export function delay(duration) {
    return call(function () {
        return new Promise((resolve) => setTimeout(resolve, duration))
    })
} 